<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ include file="/common/taglibs.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Biblioteca Virtual</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link href="css/civilized.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="outer">
        <%@ include file="menuSuperiorUser.jsp"%>
        <div id="content">
            <div id="primaryContentContainer">
                <div id="primaryContent">
              <h2>Historial de Pr&eacute;stamos</h2>
                <form:form modelAttribute="usuariolibro" >

                <div class="clear"></div>
                <table>
                  
                    <tr> 
                        <td>
                            <label for="login-text">T&iacute;tulo :</label>
                        </td>
                        <td >
                            <input type="text" id="login-text"  />
                        </td>
                    </tr>
                    <tr> 
                        <td>
                            <label for="login-text">Descripci&oacute;n :</label>
                        </td>
                        <td >
                            <input type="text" id="login-text"  />
                        </td>
                    </tr>
                   
                    <tr>
                        <td> 
                            <label for="pass-text">Categor&iacute;a :</label>
                        </td>
                        <td valign="middle" >
                            <form:select path="estadousuariolibro.idestado" >
                                <form:options items="${listaEstados}" itemLabel="descripcion" itemValue="idestado"/>
                            </form:select>
			<input type="submit" id="search-submit" value="Buscar" style="cursor:pointer"  />
                        </td>
                    </tr>
                </table>
                
                
                <h3>
                       Resultados</h3>
                    <table width="100%">
                        <tr>
                            <th>
                                Codigo
                            </th>
                            <th>
                                T&iacute;tulo
                            </th>
                           
                            <th>
                                Fecha
                            </th>
                            <th>
                                Estado
                            </th>
                        </tr>
                        
                        <c:forEach items="${usuarioReservas}" var="obj" varStatus="status"  >

                              <c:choose>
                                  <c:when test="${status.count%2==0}">
                                      <tr class="rowA">
                                  </c:when>
                                  <c:otherwise>
                                      <tr class="rowB">
                                  </c:otherwise>
                                </c:choose>

                            <td>
                                 ${obj.idusuariolibro}
                            </td>
                            <td>
                                 ${obj.libro.nombre}
                            </td>
                             <td>
                                 ${obj.fecharegistro}
                            </td>
                            <td>
                                 ${obj.estadousuariolibro.descripcion}
                            </td>
                        </tr>
                       </c:forEach>
                    </table>
                </form:form>
                   
                </div>
            </div>
            <div id="secondaryContent">

                <h3> Reservas</h3>
                <ul>
                    <li><a href="reservas_u.htm">Administrar Reservas </a></li>
                </ul>
                <h3>Cat&aacute;logo</h3>
                <ul>
                    <li><a href="catalogo.htm">B&uacute;squeda de Libros</a></li>
                    
                </ul>

               
            </div>
            </div>
       <div class="clear"></div>
	
	 <%@ include file="/common/footer.jsp"%>

</div>
    
</body>
</html>
